#include <stdio.h>
#include <string.h>

int main(int argc, char **argv)
{
	char str[] = "$y$j9T$ZObuQYNIdsVgQoR6KD4Xh0$YYHobvD1yoWZ9CDe7iaOnt8ZKLqp24jqqThDBNiiWsA";
	char *p = str;
	char *ret;
	while(1){
		ret = strsep (&p, "$");
		if(NULL == ret){
		//	perror("strsep()");
			break;
		}
		puts(ret);
	}
	return 0;
}
